package com.google.samples.apps.paging.http;

/**
 * Created by Zhucm on 2019/4/17 10:44
 * des:
 */
public class BaseBean<T> {
    public static final String SUCCESS = "200";
    protected String code;
    protected String info;
    protected T data;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public boolean isOK() {
        return SUCCESS.equals(code);
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
